<template>
  <div id="app" v-bind:style="{
      background: this.$store.state.theme.backgroundColor
    }">
    <el-container>
      <el-header style="position:fixed; top:0;width:100%">
        <navigation></navigation>
      </el-header>
      <el-main style="height:calc(100% - 80px);margin-top: 80px;">
        <keep-alive>
          <router-view />
        </keep-alive>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import Navigation from "./components/Header/Navigation";
export default {
  name: "App",
  components: {
    Navigation
  },
  data() {
    return {};
  },
  beforeCreate: function() {},
  created() {
    document.body.style.background = this.$store.state.theme.backgroundColor;
  }
};
</script>

<style>
#app {
  height: 100%;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
</style>
